<?php
namespace api\user\validate;

use think\Validate;

class OrderValidate extends Validate
{
    protected $rule = [
        'order_type'   =>'require',
        'number'          =>'require|number|gt:0',
        'pay_password' =>'require',
    ];
    protected $message = [
        'order_type'           =>'请选择交易类型',
        'number.require'     =>'请输入交易数量',
        'number.number'        =>'请输入有效交易数量',
        'number.gt'            =>'请输入正确的数量或金额',
        'pay_password.require' =>'请输入支付密码',
    ];

}